<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入vue.js -->
    <!-- 远程 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js">
    </script>
    <!-- 本地 -->
    <script src="vue.min.js"></script>
    <script src="./js/vue.min.js"></script>
</head>

<body>
    <!-- 创建id为app的div -->
    <div id="app">
        {{name}} {{school.name}} {{school.mobile}}
        <ul>
            <li>{{names[0]}}</li>
            <li>{{names[1]}}</li>
            <li>{{names[2]}}</li>
        </ul>
    </div>
</body>
<!-- 创建一个Vue的实例 -->
<script>
    var VM = new Vue({
        el: '#app',
        data: {
            name: 'Hello Vue',
            //对象类型
            school: {
                name: '中南林业科技大学',
                mobile: '123456'
            },
            //数组
            names: [
                "尼古拉斯",
                "赵四",
                "卢本伟"
            ]
        }
    });
</script>

</html>